<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-10-19 10:54:02
 * @Description: 用户等级，不打折，可领券
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-20 08:55:44
 * @FilePath: /归档/user/2021_10_19_105402_create_user_level.php
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUserLevel extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_levels', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->id();
            $table->string('level_name',255)->comment('等级');
            $table->unsignedInteger('experience')->default(0)->comment('升级需要花费的支付金额');
            $table->boolean('status')->default(1)->comment('状态 1正常 0禁用');
            $table->tinyInteger('del_flag')->default(0)->comment('删除状态（1删除 0正常）');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_levels');
    }
}
